package com.yugao.fintech.antelope.auth.oauth2.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Schema(description = "校验令牌 Response")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OAuth2CheckTokenResp {

    @ApiModelProperty(value = "用户编号")
    @JsonProperty("user_id")
    private Long userId;

    @ApiModelProperty(value = "用户类型,参见 UserTypeEnum 枚举")
    @JsonProperty("user_type")
    private Integer userType;

    @ApiModelProperty(value = "客户端编号")
    @JsonProperty("client_id")
    private String clientId;

    @ApiModelProperty(value = "授权范围")
    private List<String> scopes;

    @ApiModelProperty(value = "访问令牌")
    @JsonProperty("access_token")
    private String accessToken;

    @ApiModelProperty(value = "过期时间, 单位是：秒")
    @JsonProperty("expires_at")
    private Long expiresAt;

}
